package com.szt.ynb.server.router.pojo;

import java.io.Serializable;

import com.szt.ynb.server.router.entity.User;

public class SessionUser implements Serializable {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 955344823860943846L;
	
	private Long id;
	
	private String username;
	
	private String ip;
	
	public SessionUser() {
	}
	
	public SessionUser(User user, String ip) {
		this.id = user.getId();
		this.username = user.getUserName();
		this.ip = ip;
	}
	
	public Long getId() {
		return id;
	}
	
	public void setId(Long id) {
		this.id = id;
	}
	
	public String getUsername() {
		return username;
	}
	
	public void setUsername(String username) {
		this.username = username;
	}
	
	public String getIp() {
		return ip;
	}
	
	public void setIp(String ip) {
		this.ip = ip;
	}
	
}
